local levels = {};

for i = 1,10 do 
	local config = {};
	local base = import("app.config.levelBaseConfig");
	
	local function _getData(base,max,index,step)		
		local data = base + math.floor((index - 1)/step);
		data = data >= max and max or data;
		return data;
	end

	config.rowCount = _getData(5,base.rowCount,i,3);
	config.colCount = _getData(5,base.colCount,i,3);
	config.fruitTypeCount = _getData(4,base.fruitTypeCount,i,2);

	config.target = 100 + (i - 1)*20;

	config.totalTime = 60;
	if i > 5 then 
		config.totalTime = config.totalTime - (i - 5)*5;
	end 
	print("levels---init---"..i.."---"..config.rowCount.."---"..config.colCount.."---"..config.fruitTypeCount.."---"..config.target.."---"..config.totalTime);

	levels[i] = config;
end 

return levels;